"use strict";
var __extends = (this && this.__extends) || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var BaseService_1 = require('./BaseService');
var ProjectsDao_1 = require('../dao/ProjectsDao');
var ProjectsService = (function (_super) {
    __extends(ProjectsService, _super);
    function ProjectsService() {
        _super.call(this);
        this.projectsDao = new ProjectsDao_1.ProjectsDao();
    }
    ProjectsService.prototype.add = function (project, callback) {
        this.projectsDao.add(project, callback);
    };
    ProjectsService.prototype.getProject = function (projectId, callback) {
        this.projectsDao.get(projectId, callback);
    };
    ProjectsService.prototype.getProjects = function (callback) {
        this.projectsDao.gets(callback);
    };
    ProjectsService.prototype.getMyProjects = function (userId, callback) {
        this.projectsDao.getMines(userId, callback);
    };
    ProjectsService.prototype.updateProject = function (project, callback) {
        this.projectsDao.update(project, callback);
    };
    ProjectsService.prototype.deleteProject = function (projectId, callback) {
        this.projectsDao.delete(projectId, callback);
    };
    return ProjectsService;
}(BaseService_1.BaseService));
exports.ProjectsService = ProjectsService;
